import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    // diqu: "北京",
    p: "",
    value: '安徽',
  },
  getters: {},
  mutations: {
    updateUname(state, value) {
      state.value = value;
      // 将数据存入sessionStorage   持久化保存，防止刷新丢失
      // sessionStorage.setItem('value','北京')
      // sessionStorage.setItem('value',value)
    },


  },
  actions: {},
  modules: {},
});
